<?php
/**
 * Created by PhpStorm
 * User: shen.zk
 * Date: 2023/8/28
 * Time: 16:21
 * Comment: ''
 */

namespace App\Params\Common;

use App\Params\BaseParam;

class AuthenticationMemberParams extends BaseParam
{
    // 用户ID
    public $member_id;
    // 身份证号码
    public $id_card;
    // 真实姓名
    public $name;

    /**
     * 字段校验规则
     * @return string[]
     * @author shen.zk
     * @date 2023-08-26 18:15
     */
    public function rules()
    {
        return [
            'member_id' => 'required|int',
            'id_card' => 'required|string',
            'name' => 'required|string',
        ];
    }

    /**
     * 参数错误提示
     * @return string[]
     * @author shen.zk
     * @date 2023-08-26 18:18
     */
    public function message()
    {
        return [
            "member_id.required"=>"用户ID不能为空",
            "id_card.required"=>"实名认证身份证号码不能为空",
            "name.required"=>"用户真实姓名不能为空",
        ];
    }

    public function getMemberId()
    {
        return $this->member_id;
    }

    public function getIdCard()
    {
        return $this->id_card;
    }

    public function getName()
    {
        return $this->name;
    }
}
